import request from '@/utils/request'

// 新增设备
export function deviceAdd(data) {
  return request({
    url: '/system/device',
    method: 'post',
    data,
  })
}
// 删除设备
export function deviceDelete(id) {
  return request({
    url: '/system/device/' + id,
    method: 'delete'
  })
}
// 修改设备
export function deviceEdit(data) {
  return request({
    url: '/system/device',
    method: 'put',
    data,
  })
}
// 设备详情
export function deviceDetail(id) {
  return request({
    url: '/system/device/'+id,
    method: 'get'
  })
}
// 设备列表
export function deviceList(params) {
  return request({
    url: '/system/device/list',
    method: 'get',
    params
  })
}

// 设备列表导出
export function exportList(params) {
  return request({
    url: '/system/device/export',
    method: 'get',
    params
  })
}
